import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/index',
      meta: {
        requireAuth: true
      }
    },



    // 首页
    {
      path: '/index',
      component: resolve => require(['../pages/Home/Index'], resolve),
      meta: {
        requireAuth: true,
        keepAlive: true,
        title: '消防报警实时监控统计（深圳）'
      }
    }
  ]
})
